# -*- codeing = utf-8 -*-
from bs4 import BeautifulSoup
import requests
URL = 'https://vacations.ctrip.com/list/whole/sc.html?sv=%E4%B9%9D%E5%AF%A8%E6%B2%9F&startcity=28'
headers = {
            'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.25 Safari/537.36 Core/1.70.3877.400 QQBrowser/10.8.4506.400'
        }
resp = requests.get(url=URL,headers=headers)
resp.encoding = 'UTF-8'
soup = BeautifulSoup(resp.text,'lxml')
list1 = soup.select('#root > div > div.vacation_bd ')
print(list1)